<?php

class Layout{
	
	public function __construct(){}
	
	public static function getFlashTopo($entidadePrincipal, $includeDiv, $script){
		
		$rootFolder = getRootFolderPath();
		
		ob_start();
        include($script);
		$strInc = ob_get_clean();
		
		$str = sprintf(
			'<div id="conta">
			    <br /><br />
			    
			    <div id="%s">%s</div>
			
			    <br /><br />
			    
			</div>',
			$includeDiv, $strInc
		);
		return $str;
	}
	
	public static function getMenu(){
		
		$rootFolder = getRootFolderPath();
		
		$str = sprintf(
			'<div class="wrapper-container"><div class="wrapper-atendimento">
			<div class="atendimento">
				<p class="cidade">Atendimento em S&atilde;o Paulo</p>
				<p class="horario">
					<a href="mailto:contato@2ddesconto.com.br" style="color: #999;"><span>contato@2ddesconto.com.br</span></a>
				</p>
				<span class="clear"></span>
			</div>
			<span class="clear"></span>
		</div>
		<div class="wrapper-header">
			<div class="nav-menu">
				<ul>
					<div class="left">
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/site">Home</a></li>
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/site/quem-somos">Quem Somos</a></li>
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/site/como-funciona">Como Funciona</a></li>
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/site/parceiros">Parceiros</a></li>
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/site/contato">Contato</a></li>
					</div>
					<a href="http://www.2ddesconto.com.br/site/" class="logo-menu">2d Descontos</a>
					<div class="right">
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/site/cadastre-se">Cadastre-se</a></li>
						<li><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/bg-menu-hover.png" class="hover" style="display: none;"><a href="http://www.2ddesconto.com.br/basico/authentication.php">Login</a></li>
					</div>
				</ul>
			</div>
		</div>'
		);
		
		return $str;
	}
	
	public static function getTopo(){
					  
		$rootFolder = getRootFolderPath();
		
		$str  = sprintf(
			   '<!-- <div id="topo">
				<center>
				    <table border="0" cellpadding="0" cellspacing="0" align="center">
				    <tr>
				    	<td>
				        <img src="%sdesconto2d/imgs/topo01.jpg" width="163" height="107" border="0" style="display:block;" />
				        </td><td>
						<a href="%sdesconto2d/principal.php" target="_self">
				        <img src="%sdesconto2d/imgs/topo02.jpg" width="477" height="107" border="0" style="display:block;" />
						</a>
				        </td><td>
				        <img src="%sdesconto2d/imgs/topo03.jpg" width="479" height="107" border="0" style="display:block;" />
						</td><td>
				        <img src="%sdesconto2d/imgs/topo04.jpg" width="161" height="107" border="0" style="display:block;" />
				        </td>
				    </tr><tr>
				    	<td>
				        <img src="%sdesconto2d/imgs/topo05.jpg" width="163" height="107" border="0" style="display:block;" />
						</td><td>
						<a href="%sdesconto2d/principal.php" target="_self">
				        <img src="%sdesconto2d/imgs/topo06.jpg" width="477" height="107" border="0" style="display:block;" />
						</a>
						</td><td>
				        <img src="%sdesconto2d/imgs/topo07.jpg" width="479" height="107" border="0" style="display:block;" />
				        </td><td>
				        <img src="%sdesconto2d/imgs/topo08.jpg" width="161" height="107" border="0" style="display:block;" />
						</td>
				    </tr>
				    </table>
				</center>
				</div> -->', $rootFolder,$rootFolder,$rootFolder,$rootFolder,$rootFolder,$rootFolder,$rootFolder,$rootFolder,$rootFolder,$rootFolder);
		
		return $str;
	}
	
	public static function getTopoForms(){
		
		$rootFolder = getRootFolderPath();
		
		$str  = sprintf(
			   '<div id="topo-forms">
				<center>
				    <table border="0" cellpadding="0" cellspacing="0" align="center">
				    <tr>
				    	<td>
				        <img src="%sdesconto2d/imgs/topo-forms.jpg" width="455" height="216" border="0"/>
				        </td>
				    </tr>
				    </table>
				</center>
				</div>', $rootFolder);
		
		return $str;
	}	
	
	public static function getBase(){
		
		$rootFolder = getRootFolderPath();
		
		$str = sprintf(
		       '</div><div class="wrapper-footer">
		<div class="footer">
			<ul class="menu-inf">
				<div class="left">
					<li><a href="http://www.2ddesconto.com.br/site">Home</a></li>
					<li><a href="http://www.2ddesconto.com.br/site/quem-somos">Quem Somos</a></li>
					<li><a href="http://www.2ddesconto.com.br/site/como-funciona">Como Funciona</a></li>
					<li><a href="http://www.2ddesconto.com.br/site/parceiros">Parceiros</a></li>
					<li><a href="http://www.2ddesconto.com.br/site/contato">Contato</a></li>
				</div>
				<div class="right">
					<li><a href="http://www.2ddesconto.com.br/site/termos">Termos e Condi&ccedil;&aoilde;es de Uso</a></li>
					<li><a href="http://www.2ddesconto.com.br/desconto2d/forms/cliente_f.php">Cadastre-se</a></li>
					<li><a href="http://www.2ddesconto.com.br/basico/authentication.php">Login</a></li>
				</div>
				<span class="clear"></span>
			</ul>
			<div class="copyright">
				<p class="left"><span>2d</span>Desconto - todos os direitos reservados - copyright 2013</p>
				<a href="http://www.2ddesconto.com.br/site" class="logo-footer"><img src="http://www.2ddesconto.com.br/site/wp-content/themes/2d/img/logo-footer.png"></a>
				<p class="right">design por <a href="http://www.agenciath2.com.br" target="blank">agência th2</a></p>
				<span class="clear"></span>
			</div>
		</div>
	</div>');
		
		return $str;
	}
}